package net.club.daos.impl;

import net.club.beans.Subsistemacontable;

import net.club.daos.AbstractDao;
import net.club.daos.ISubsistemaContableDao;

import net.club.hibernate.DataAccessLayerException;

import java.util.List;


/**
 * @author alarosa@technisys.net
  */
public class SubsistemaContableDaoImpl extends AbstractDao implements ISubsistemaContableDao {
    /**
     * Crea un nuevo objeto ContenidoAtributoCargaDao.
     */
    public SubsistemaContableDaoImpl() {
        super();
    }

    /* (non-Javadoc)
	 * @see net.club.daos.impl.ISubsistemaContableDao#create(net.club.beans.Subsistemacontable)
	 */
    public boolean create(Subsistemacontable obj)
        throws DataAccessLayerException {
        return super.save(obj);
    }

    /* (non-Javadoc)
	 * @see net.club.daos.impl.ISubsistemaContableDao#delete(net.club.beans.Subsistemacontable)
	 */
    public boolean delete(Subsistemacontable obj)
        throws DataAccessLayerException {
        return super.delete(obj);
    }

    /* (non-Javadoc)
	 * @see net.club.daos.impl.ISubsistemaContableDao#find(java.lang.Integer)
	 */
    public Subsistemacontable find(Integer id) throws DataAccessLayerException {
        return (Subsistemacontable) super.find(Subsistemacontable.class, id);
    }

    /* (non-Javadoc)
	 * @see net.club.daos.impl.ISubsistemaContableDao#update(net.club.beans.Subsistemacontable)
	 */
    public boolean update(Subsistemacontable obj)
        throws DataAccessLayerException {
        return super.update(obj);
    }

    /* (non-Javadoc)
	 * @see net.club.daos.impl.ISubsistemaContableDao#findAll()
	 */
    @SuppressWarnings("unchecked")
    public List<Subsistemacontable> findAll() throws DataAccessLayerException {
        return super.findAll(Subsistemacontable.class);
    }
}
